package com.sxt.feign.core.anno;

import java.lang.annotation.*;

/**
 * 熔断器的注解，有该注解则进入切面类
 * @author LSX
 * @create 2019/8/22
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface HystixCmdRpc {
    /**
     * 当调用失败，调用备胎，指定备胎类型
     * @return
     */
    Class<?> callback() default  Object.class;
}
